// components/auth/index.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {},

  /**
   * 组件的初始数据
   */
  data: {
    show: false,
    showPopup: true
  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 去协议查看页面
    clickAgreementText() {
      wx.navigateTo({
        url: '/pages/login/customerAgreement/index'
      });
    },
    async handleIsAgree(e) {
      this.setData({
        showPopup: false
      });
      const { type } = e.currentTarget.dataset;

      wx.reLaunch({
        url: '/subcontract/person/pages/login/login/index'
      });
    }
  }
});
